package com.yix.modules.ml;

/**
 * @author wdx
 * @version 1.0
 * @Description TODO
 * @date 2021/2/2 15:51
 */
public class Invoker {
    private Command command;

    Invoker(Command command) {
        this.command=command;
    }

    public void setCommand(Command command) {
        this.command=command;
    }

    public void call() {
        System.out.println("调用者执行命令command...");
        command.execute();
    }
}
